package org.ming.ticketSellingSystem.framework.starter.bases.safa;

import org.springframework.beans.factory.InitializingBean;

/**
 * FastJson 安全模式,开启后 会关闭类型隐式传递
 * 继承InitializingBean表示 bean 完全初始化后执行一些自定义的初始化逻辑
 */
public class FastJsonSafaMode implements InitializingBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        System.setProperty("fastjson2.parser.safaMode","true");
    }
}
